package com.loongtech.bi.manager.player;

import com.loongtech.bi.entity.bigr.GatherGeneralSituation;
import com.loongtech.core.jpa.manager.ManagerQueryCacheBase;
import com.loongtech.core.util.Time;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class GatherGeneralSituationManager extends ManagerQueryCacheBase<GatherGeneralSituation> {
	private static final long serialVersionUID = 1L;
	
    public List<GatherGeneralSituation> getDatas(Date date) {
        return findByQuery("from GatherGeneralSituation where day=:date order by channel,totalusernumber desc ", "date", Time.formatDate(date, Time.TIMEPATTERN_SIMPLE));
    }
}
